package com.atguigu.marketing.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 营销规则-时机
 * </p>
 *
 * @author zhangchen
 * @since 2023-02-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="MarketingRuleTime对象", description="营销规则-时机")
public class MarketingRuleTime implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "营销规则id")
    private Long marketingRuleId;

    @ApiModelProperty(value = "推送类型 1、固定一次  2、周期型 3、触发型")
    private String pushType;



    @ApiModelProperty(value = "周期类型 1、每天  2、每周   3、每月")
    private String loopType;

    @ApiModelProperty(value = "发送时刻")
    private String loopTime;

    @ApiModelProperty(value = "发送日（每月） 1-31")
    private Integer loopMonthDay;

    @ApiModelProperty(value = "发送日（每周） 1-7")
    private Integer loopWeekDay;

    @ApiModelProperty(value = "固定发送时间")
    private Date onceTime;

    @ApiModelProperty(value = "触发事件,  HOME,DETAIL,FAVOR, CART, ORDER,PAY")
    private String triggerEvent;

    @ApiModelProperty(value = "起始日期")
    private Date fromDt;

    @ApiModelProperty(value = "结束日期")
    private Date toDt;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;


}
